﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Module_Search.ascx.cs" Inherits="Modules_Search" %>
<style type="text/css">
    <!--
#Search_Left{width:10%;float:left; background-color:White; text-align:center;
    } 
#Search_Right{width:90%;float:left; background-color:Yellow;} 
-->
</style>
<div id="Search_Left">
    <br />
    <br />
    <asp:Button ID="Menu_Button_AllType" runat="server" Text="所有类型" Width="76px" 
        onclick="Menu_Button_AllType_Click"/>
    <br />
    <br />
    <asp:Button ID="Menu_Button_Text" runat="server" Text="文    本" Width="76px" 
        onclick="Menu_Button_Text_Click" />
    <br />
    <br />
    <asp:Button ID="Menu_Button_Voice" runat="server" Text="音   频" Width="76px" 
        onclick="Menu_Button_Voice_Click" />
    <br />
    <br />
    <asp:Button ID="Menu_Button_Movie" runat="server" Text="视    频" Width="76px" 
        onclick="Menu_Button_Movie_Click" />
    <br />
    <br />
    <asp:Button ID="Menu_Button_Image" runat="server" Text="图    像" Width="76px" 
        onclick="Menu_Button_Image_Click" />
    <br />
    <br />
    <asp:Button ID="Menu_Button_Flash" runat="server" Text="动    画" Width="76px" 
        onclick="Menu_Button_Flash_Click" />
    <br />
    <br />
    <asp:Button ID="Menu_Button_Course" runat="server" Text="课    件" Width="76px" 
        onclick="Menu_Button_Course_Click" />
    <br />
    <br />
    <br />
</div>
<div id="Search_Right">
    <asp:MultiView ID="MultiView_Search" runat="server" ActiveViewIndex="0">
        <asp:View ID="View_Search_Common" runat="server">
             <asp:TextBox ID="Common_TextBox_Title" runat="server"></asp:TextBox>
             &nbsp;&nbsp;&nbsp;&nbsp;
             <asp:Button ID="Common_Button_Search" runat="server" Height="25px" 
                 Text="搜  索" Width="70px" onclick="Common_Button_Search_Click" />
             &nbsp;&nbsp; &nbsp;&nbsp;<asp:Button ID="Button_Serch_Exact" runat="server" Height="25px" 
                 Text="精确查询" Width="70px" onclick="Button_Serch_Exact_Click" />
     
             &nbsp;<br />
     
        </asp:View>
        
        <asp:View ID="View_Search_Exact" runat="server">
            资源标题：<asp:TextBox ID="Exact_TextBox_Title" runat="server"></asp:TextBox>
            <br />
            <br />
            关&nbsp; 键&nbsp; 词：<asp:TextBox ID="Exact_TextBox_KeyWord" runat="server"></asp:TextBox>
            <br />
            <br />
            学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 科：
            <asp:DropDownList ID="Exact_DropDownList_Subject" runat="server">
            </asp:DropDownList>
            <br />
            <br />
            类&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 型：<asp:DropDownList ID="Exact_DropDownList_Type" runat="server">
                        <asp:ListItem Value="1">文本文件</asp:ListItem>
                        <asp:ListItem Value="2">图形/图像文件</asp:ListItem>
                        <asp:ListItem Value="3">视频文件</asp:ListItem>
                        <asp:ListItem Value="4">音频文件</asp:ListItem>
                        <asp:ListItem Value="5">动画文件</asp:ListItem>
                        <asp:ListItem Value="6">课件文件</asp:ListItem>
            </asp:DropDownList>
            <br />
            <br />
            作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 者：<asp:TextBox ID="Exact_TextBox_Author" runat="server"></asp:TextBox>
            <br />
            <br />
            来&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 源：<asp:TextBox ID="Exact_TextBox_Resource" runat="server"></asp:TextBox>
            <br />
            <br />
            上&nbsp; 传&nbsp; 人：<asp:TextBox ID="Exact_TextBox_Uploader" runat="server"></asp:TextBox>
            <br />
            <br />
            更新日期：<asp:DropDownList ID="Year_From" runat="server">
            </asp:DropDownList>
            年<asp:DropDownList ID="Month_From" runat="server">
            </asp:DropDownList>
            月到<asp:DropDownList ID="Year_To" runat="server">
            </asp:DropDownList>
            年<asp:DropDownList ID="Month_To" runat="server">
            </asp:DropDownList>
            月<br />
            <br />
            <br />
            <br />
             <asp:Button ID="Exact_Button_Search" runat="server" Text="搜  索" onclick="Exact_Button_Search_Click" 
               />
             &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button_Serch_Common" runat="server" Text="普通查询" 
                onclick="Button_Serch_Common_Click" />
            <br />
        </asp:View>
    </asp:MultiView>

<asp:MultiView ID="MultiView_Search_Result" runat="server" ActiveViewIndex="0">
    <asp:View ID="View_Result_List" runat="server">
        <br />
        <asp:Label ID="Result_Count" runat="server" Text="记录数量"></asp:Label>
        <asp:GridView ID="GridView_Result_List" runat="server" 
            AutoGenerateColumns="False" >
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <asp:Label ID="listid" runat="server" Text="<%#Container.DataItemIndex+1 %>" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="标题">
                    <ItemTemplate>
                        <asp:HyperLink ID="listtitle" runat="server" 
                            NavigateUrl='<%# "../Search_Detail.aspx?resid="+ Eval("id") %>'>
                        <%# Eval("title")%>
                        </asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="学科">
                    <ItemTemplate>
                        <asp:Label ID="listsub" runat="server" Text='<%# Eval("subject") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="作者">
                    <ItemTemplate>
                        <asp:Label ID="listauthor" runat="server" Text='<%# Eval("author") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="发布者">
                    <ItemTemplate>
                        <asp:Label ID="listpublisher" runat="server" 
                            Text='<%# Eval("publisherID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="更新时间">
                    <ItemTemplate>
                        <asp:Label ID="listupdate" runat="server" Text='<%# Eval("updatatime") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <br />
    </asp:View>
    <asp:View ID="View_Result_Detail" runat="server">
        <br />
    </asp:View>
</asp:MultiView>
</div>



